package org.simplecrm.repository.usergroup;

import org.simplecrm.domain.usergroup.UserGroup;

import java.util.List;

/**
 * Defines an interface for obtaining and changing data of DB
 * from table "security_usergroup".
 */
public interface UserGroupDAO {

    /**
     * @return
     */
    List<UserGroup> getAllUsergroups();

    /**
     * @param usergroupName
     * @return
     */
    UserGroup getUsergroupByName(String usergroupName);

}